package com.skd.ssh.web.controls;

import com.skd.ssh.domain.User;
import com.skd.ssh.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/user")
public class UserAction {
    @Autowired
    public UserService userService;
    @RequestMapping("/login.do")
    public void login()
    {
        User user=userService.getEntityById(1);
        System.out.print(user);

    }
}
